package com.cloud.hello.impl.client;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient {

    @Override
    public ResponseEntity<String> user() {
        System.out.println(Thread.currentThread().getName());
        return new ResponseEntity<>("服务器繁忙，请稍后再试！", HttpStatus.INTERNAL_SERVER_ERROR);
    }

}
